// 用于存放各模块都会使用到的接口数据
import PublicSev from '@/api/PublicSev'
const apiData = {
  state: {
    // 权限地区树
    regionList: []
  },
  mutations: {
    SET_REGION_LIST: (state, data) => {
      state.regionList = data
    }

  },
  actions: {
    async fetchRegin({ commit }) {
      const { data } = await PublicSev.regionJson()
      commit('SET_REGION_LIST', data)
      return true
    }
  }
}

export default apiData
